package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.SysComponentReturnValueMapper;
import com.ruoyi.business.domain.SysComponentReturnValue;
import com.ruoyi.business.service.ISysComponentReturnValueService;

/**
 * 系统组件返回值Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-18
 */
@Service
public class SysComponentReturnValueServiceImpl implements ISysComponentReturnValueService 
{
    @Autowired
    private SysComponentReturnValueMapper sysComponentReturnValueMapper;

    /**
     * 查询系统组件返回值
     * 
     * @param id 系统组件返回值主键
     * @return 系统组件返回值
     */
    @Override
    public SysComponentReturnValue selectSysComponentReturnValueById(Long id)
    {
        return sysComponentReturnValueMapper.selectSysComponentReturnValueById(id);
    }

    /**
     * 查询系统组件返回值列表
     * 
     * @param sysComponentReturnValue 系统组件返回值
     * @return 系统组件返回值
     */
    @Override
    public List<SysComponentReturnValue> selectSysComponentReturnValueList(SysComponentReturnValue sysComponentReturnValue)
    {
        return sysComponentReturnValueMapper.selectSysComponentReturnValueList(sysComponentReturnValue);
    }

    /**
     * 新增系统组件返回值
     * 
     * @param sysComponentReturnValue 系统组件返回值
     * @return 结果
     */
    @Override
    public int insertSysComponentReturnValue(SysComponentReturnValue sysComponentReturnValue)
    {
        sysComponentReturnValue.setCreateTime(DateUtils.getNowDate());
        return sysComponentReturnValueMapper.insertSysComponentReturnValue(sysComponentReturnValue);
    }

    /**
     * 修改系统组件返回值
     * 
     * @param sysComponentReturnValue 系统组件返回值
     * @return 结果
     */
    @Override
    public int updateSysComponentReturnValue(SysComponentReturnValue sysComponentReturnValue)
    {
        sysComponentReturnValue.setUpdateTime(DateUtils.getNowDate());
        return sysComponentReturnValueMapper.updateSysComponentReturnValue(sysComponentReturnValue);
    }

    /**
     * 批量删除系统组件返回值
     * 
     * @param ids 需要删除的系统组件返回值主键
     * @return 结果
     */
    @Override
    public int deleteSysComponentReturnValueByIds(Long[] ids)
    {
        return sysComponentReturnValueMapper.deleteSysComponentReturnValueByIds(ids);
    }

    /**
     * 删除系统组件返回值信息
     * 
     * @param id 系统组件返回值主键
     * @return 结果
     */
    @Override
    public int deleteSysComponentReturnValueById(Long id)
    {
        return sysComponentReturnValueMapper.deleteSysComponentReturnValueById(id);
    }
}
